home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI597.ASC < prev    next >
Text File  |  1992-09-14  |  18KB  |  529 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  597
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  September 14, 1992                       PAGE  :  1/8
  12.  
  13.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  14.  
  15.  
  16.  
  17.  
  18.   This Technical Information sheet is divided into three sections.
  19.   The first section discusses possible causes of table damage.  The
  20.   second section provides instructions on how to repair Paradox 4.0
  21.   tables.  The third section provides instructions on how to repair
  22.   tables from version Paradox 3.5 or earlier.
  23.  
  24.  
  25.      1.  Possible Causes of Table Damage
  26.  
  27.          There are several things that can cause table damage.
  28.          These are not due to any problems with Paradox, but are an
  29.          unfortunate part of operating in the DOS environment.  The
  30.          best one can do is to be aware of the causes and do one's
  31.          best to avoid them.  Below is a list of possible ways that
  32.          a table may become damaged.  These are arranged roughly by
  33.          how frequently the type of error occurs.
  34.  
  35.             a.  Operator Error - Turning off or rebooting the
  36.                 computer while Paradox is on the screen.  Just
  37.                 because there are no images on the screen does not
  38.                 mean it is OK to shut the system down, as parts of
  39.                 the table may remain only in RAM.  ALWAYS exit
  40.                 Paradox and return to DOS before rebooting or
  41.                 powering down.  This also means that it is not OK
  42.                 to shut down the machine while shelled out to DOS
  43.                 from Paradox using the Tools | More | ToDos,
  44.                 <Alt-O>, or <Ctrl-O> commands.  Possible indicators
  45.                 that this has occurred:
  46.  
  47.                     o  Stray PDOXUSRS.LCK files (PARADOX.LCK files
  48.                        for versions earlier than 4.0) in a
  49.                        networked environment can indicate someone
  50.                        exiting Paradox improperly.  Make certain no
  51.                        one is logged in to Paradox and delete any
  52.                        *.LCK files.  Rebuild any tables being used
  53.                        when the computer was shut down.
  54.  
  55.                     o  Stray PARADOX.RUN files indicate that
  56.                        someone has rebooted the machine after
  57.                        shelling out to Paradox using the ToDos or
  58.                        <Ctrl-O> or <Alt-O> commands.  Be certain no
  59.                        one is in Paradox OR shelled out from
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  597
  75.   VERSION  :  All
  76.        OS  :  DOS
  77.      DATE  :  September 14, 1992                       PAGE  :  2/8
  78.  
  79.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  80.  
  81.  
  82.  
  83.  
  84.                        Paradox and delete any remaining PARADOX.RUN
  85.                        files.
  86.  
  87.             b.  TSR Programs - Programs that run in the
  88.                 "background" are sometimes "ill-mannered" about the
  89.                 way they return control to the main program.  If
  90.                 the program does not restore the bus and RAM back
  91.                 to the original state, this can cause damage.  Even
  92.                 popping up a TSR, using its hotkey, at a bad time
  93.                 (in the middle of a sort for instance) can cause
  94.                 problems.  Possible indicator:
  95.  
  96.                     o  Paradox will often freeze, or reports memory
  97.                        conflicts.
  98.  
  99.             c.  Hard or Floppy Disk Errors - The presence of
  100.                 corrupted tables can indicate that your hard disk
  101.                 is not operating up to specifications.
  102.  
  103.                 Any failure of the media to read or write to the
  104.                 media properly can damage a table.  A bad
  105.                 controller card can also cause problems.  You
  106.                 should frequently test your disk for errors using
  107.                 some utility software such as PC-Tools or Norton
  108.                 Utilities or any similar products.  Possible
  109.                 indicator:
  110.  
  111.                     o  Run CHKDSK /F to check for bad sectors or
  112.                        cross-linked files which were written to the
  113.                        disk incorrectly.  This will move the lost
  114.                        sectors to *.CHK files.  Check your DOS
  115.                        manual for further details.
  116.  
  117.             d.  A.C. Voltage Variations - Black outs, brown outs,
  118.                 line "spikes", line "dips".  Example: Your printer
  119.                 places power dips on line and can damage Paradox
  120.                 tables.  A computer with a power supply that is too
  121.                 weak for all the boards or devices connected to it
  122.                 can generate a voltage that is too low.  The best
  123.                 way to avoid these problems is a quality surge
  124.                 protector or even a UPS (Uninterrupted Power
  125.                 Supply) which can give you time to shut down
  126.                 Paradox.  Possible indicator:
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Paradox                                NUMBER  :  597
  141.   VERSION  :  All
  142.        OS  :  DOS
  143.      DATE  :  September 14, 1992                       PAGE  :  3/8
  144.  
  145.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  146.  
  147.  
  148.  
  149.  
  150.                     o  In a networked environment, PDOXUSRS.LCK
  151.                        files (PARADOX.LCK for versions earlier than
  152.                        4.0) can show up from this situation also.
  153.                        Check for any *.LCK files.  This might
  154.                        indicate that one or more workstations went
  155.                        down due to a power surge (or user error).
  156.  
  157.             e.  RAM Problems - Parity errors in memory chips, CPU
  158.                 speed set higher than the memory can refresh
  159.                 (appears to be a problem in some high speed
  160.                 clones), an extended memory board in the machine
  161.                 that has NOT been INITIALIZED (via the software
  162.                 provided by the board manufacturer).  These are all
  163.                 hardware problems which can cause table damage.
  164.                 Possible indicators:
  165.  
  166.                     o  Parity interrupt errors, tables constantly
  167.                        going bad without fitting any other
  168.                        symptoms, etc.
  169.  
  170.             f.  Unexpected Condition Errors - Any situation in
  171.                 which Paradox exits unexpectedly can cause table
  172.                 damage.  A typical error message begins with
  173.                 Unexpected Condition.  If this happens, you should
  174.                 first reboot then rebuild the table.  A damaged
  175.                 table or family member (forms, reports, etc.) can
  176.                 also cause these Unexpected Conditions, so be aware
  177.                 of other sources for the original damage as well.
  178.  
  179.             g.  Network Problems - A malfunctioning server, with
  180.                 any of the above problems, bad cable connector, bad
  181.                 I/O RAM, bad packet transmission (interference),
  182.                 malfunctioning network board, or even a net line
  183.                 that is too long or just getting old can all be
  184.                 responsible for damaging tables.
  185.  
  186.  
  187.      2.  Repairing a Damaged Paradox 4.0 Table
  188.  
  189.          The three possible types of table damage are: damaged
  190.          data, a damaged table structure, and a damaged family.
  191.          This section discusses a method for recovering damaged
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Paradox                                NUMBER  :  597
  207.   VERSION  :  All
  208.        OS  :  DOS
  209.      DATE  :  September 14, 1992                       PAGE  :  4/8
  210.  
  211.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  212.  
  213.  
  214.  
  215.  
  216.          data.  If you do not have damaged data and you suspect
  217.          your table is damaged, contact Paradox Technical Support.
  218.  
  219.          If your Paradox 4.0 table unexpectedly contains lower
  220.          ASCII characters within the data (i.e. smiley faces,
  221.          hearts, etc.), then your data may be damaged; for this
  222.          symptom, the ASCII Export/Import Method is appropriate.
  223.          This method, which is described in detail on the following
  224.          pages, involves exporting the damaged file to an ASCII
  225.          Delimited file, creating a new table with the identical
  226.          structure as the damaged table, then performing an
  227.          AppendDelimited ASCII Import of the ASCII Delimited file
  228.          to the new table.
  229.  
  230.          NOTE:  Before attempting to repair your damaged table, it
  231.          is recommended that you first make a backup copy of your
  232.          table.
  233.  
  234.          When exporting a damaged table, it is possible that the
  235.          export may continue running and create temporary export
  236.          files until you run out of disk space.  This will not
  237.          damage any already existing files on your hard disk, but
  238.          it will not give you a proper export file.  In the event
  239.          that this occurs, contact Paradox Technical Support.
  240.  
  241.          The ASCII Export/Import Method
  242.  
  243.          To repair a damaged Paradox 4.0 table by using the ASCII
  244.          Export/Import Method, you need to perform the steps
  245.          summarized below.  These steps are described in detail on
  246.          the following pages.  If at any point you are unable to
  247.          proceed, contact Paradox Technical Support.
  248.  
  249.             a.  Make a backup copy of the damaged table.
  250.  
  251.             b.  Export the damaged table to an ASCII Delimited
  252.                 file.
  253.  
  254.             c.  Perform a Tools | Info | Structure on the damaged
  255.                 table and print out the STRUCT table.
  256.  
  257.             d.  Create a new table with the identical structure as
  258.                 the damaged table.
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.   PRODUCT  :  Paradox                                NUMBER  :  597
  273.   VERSION  :  All
  274.        OS  :  DOS
  275.      DATE  :  September 14, 1992                       PAGE  :  5/8
  276.  
  277.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  278.  
  279.  
  280.  
  281.  
  282.             e.  Import the ASCII file and append it to the new
  283.                 table.
  284.  
  285.             f.  Test the new table.
  286.  
  287.  
  288.          The instructions below tell you step by step how to repair
  289.          a damaged Paradox 4.0 table.
  290.  
  291.             a.  Make a backup copy of a table:
  292.  
  293.                    i.  From the Paradox Menu, select Tools | Copy |
  294.                        Table.
  295.  
  296.                   ii.  Type the table name, then press <ENTER>.
  297.  
  298.                  iii.  Type the new table name, then press <ENTER>.
  299.  
  300.             b.  Export the damaged table to an ASCII Delimited File
  301.  
  302.                    i.  From the Paradox Menu, select Tools |
  303.                        ExportImport | Export | ASCII | Delimited.
  304.  
  305.                   ii.  Type in the name of the table that you want
  306.                        to export, then press <ENTER>.
  307.  
  308.                  iii.  Type in the name of the ASCII file that you
  309.                        want to create, then press <ENTER>.  For
  310.                        example, if the table name is CUSTOMER, you
  311.                        may want to type CUSTOMER.  If you do not
  312.                        include a DOS extension for the file,
  313.                        Paradox will create the extension TXT.
  314.  
  315.                        NOTE:  Memo fields and BLOb fields are not
  316.                        exported during an ASCII delimited export.
  317.  
  318.             c.  Print the structure of the damaged table.
  319.  
  320.                    i.  From the Paradox Menu, select Tools | Info |
  321.                        Structure.
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.   PRODUCT  :  Paradox                                NUMBER  :  597
  339.   VERSION  :  All
  340.        OS  :  DOS
  341.      DATE  :  September 14, 1992                       PAGE  :  6/8
  342.  
  343.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  344.  
  345.  
  346.  
  347.  
  348.                   ii.  Type in the table name that you suspect is
  349.                        damaged, then press <ENTER>.  Paradox will
  350.                        create a STRUCT table.
  351.  
  352.                  iii.  Press <Alt-F7> to create an Instant report
  353.                        of the STRUCT table and send it to the
  354.                        printer.
  355.  
  356.             d.  Create a new table with the identical structure as
  357.                 the damaged table
  358.  
  359.                    i.  From the Paradox Menu, select Create, then
  360.                        type a new table name (this should be a
  361.                        different name from the damaged table), then
  362.                        press <ENTER>.
  363.  
  364.                   ii.  Type in the Field Names and Field Types in
  365.                        the identical order as specified in your
  366.                        printout from the STRUCT table.  Do not
  367.                        include any memo and BLOb fields in the
  368.                        table structure.  When you are finished,
  369.                        press <F2>.
  370.  
  371.             e.  Import the ASCII file and append it to the new
  372.                 table
  373.  
  374.                    i.  From the Paradox Menu, select Tools |
  375.                        ExportImport | Import | ASCII |
  376.                        AppendDelimited.
  377.  
  378.                   ii.  Type in the name of the ASCII delimited
  379.                        file, then press <ENTER>.
  380.  
  381.                  iii.  Type in the name of the table that you
  382.                        created in step d, then press <ENTER>.
  383.                        Paradox will append the records in the ASCII
  384.                        Delimited file to the table.
  385.  
  386.                        NOTE:  If you get a PROBLEMS table, double
  387.                        check the structure of your new table and
  388.                        make sure that it exactly matches the
  389.                        structure of your original table excluding
  390.                        the memo and BLOb fields.
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.   PRODUCT  :  Paradox                                NUMBER  :  597
  405.   VERSION  :  All
  406.        OS  :  DOS
  407.      DATE  :  September 14, 1992                       PAGE  :  7/8
  408.  
  409.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  410.  
  411.  
  412.  
  413.  
  414.             f.  Test the new table.
  415.  
  416.          Test the new table.  When you are confident that there is
  417.          no table damage in the new table, you can rename the new
  418.          table to the same name as the damaged table.  If you want
  419.          to rename your table, make sure that you use Tools |
  420.          Rename | Table instead of using the DOS Ren command.
  421.  
  422.          NOTE:  The steps outlined above produce a table with no
  423.          connection to the previous table.
  424.  
  425.  
  426.      3.  Repairing Damaged Tables From Paradox Version 3.5 or
  427.          Earlier
  428.  
  429.          If you are using Paradox version 3.5 or earlier and your
  430.          data is damaged, you can repair your damaged table by
  431.          using the method outlined above for repairing a Paradox
  432.          4.0 table.  Obviously, Memo and BLOb fields are not an
  433.          issue for Paradox versions earlier than 4.0.  Another
  434.          method of repairing a damaged table is to use the TUTILITY
  435.          program.  Below are some instructions on how to use
  436.          TUTILITY to rebuild a table from Paradox version 3.5 or
  437.          earlier.
  438.  
  439.          TUTILITY is a DOS executable program that checks a Paradox
  440.          table for damage and then rebuilds it if necessary.  If
  441.          you are using Paradox 3.5, TUTILITY.EXE and TUTILITY.DOC
  442.          are automatically installed in your Paradox directory.  If
  443.          you are using Paradox version 3.0 or earlier, you will
  444.          need to install TUTILITY yourself.  For instructions on
  445.          how install TUTILITY, please refer to the section labeled
  446.          "Installing TUTILITY Onto Your computer" that appears at
  447.          the end of this Technical Information sheet.
  448.  
  449.  
  450.             a.  How to Use TUTILITY to Rebuild a Damaged Table
  451.  
  452.                 From your DOS command line, change directories to
  453.                 your Paradox directory using the following command:
  454.                 i.e. if you are using Paradox 3.5, type cd \PDOX35.
  455.                 If you named your directory something other than
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.   PRODUCT  :  Paradox                                NUMBER  :  597
  471.   VERSION  :  All
  472.        OS  :  DOS
  473.      DATE  :  September 14, 1992                       PAGE  :  8/8
  474.  
  475.     TITLE  :  Causes and Methods of Repairing Damaged Tables
  476.  
  477.  
  478.  
  479.  
  480.                 PDOX35, you will need to enter the appropriate
  481.                 directory name.
  482.  
  483.                 Type tutility to enter the TUTILITY program.  You
  484.                 will see a menu at the top of the screen.  Select
  485.                 the Directory option to change directories to where
  486.                 your data is kept.  Then select the Rebuild option
  487.                 and enter your table name to rebuild that table.
  488.                 You can also select to the Verify option to test
  489.                 the table for damage, but some types of damage
  490.                 elude the verify command, so if there is any doubt,
  491.                 select Rebuild.  After rebuilding all your tables,
  492.                 you can then exit TUTILITY and re-enter Paradox.
  493.  
  494.                 For additional information on how to use TUTILITY,
  495.                 refer to the file TUTILITY.DOC in your Paradox
  496.                 directory.
  497.  
  498.             b.  Installing TUTILITY On Your Computer
  499.  
  500.                 If you have version 3.0 of Paradox, you will need
  501.                 to install TUTILITY yourself.  This program
  502.                 consists of two files, TUTILITY.EXE and
  503.                 TUTILITY.DOC.  You can find these files on your
  504.                 Installation/Sample Tables Diskette (the one with
  505.                 your Serial Number on it), or failing that, examine
  506.                 your Personal Programmer Disk #6 in the UTIL
  507.                 subdirectory.  To install TUTILITY from diskette,
  508.                 use the DOS copy command to copy TUTILITY.* to your
  509.                 computer.
  510.  
  511.   DISCLAIMER: You have the right to use this technical information
  512.   subject to the terms of the No-Nonsense License Statement that
  513.   you received with the Borland product to which this information
  514.   pertains.
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.